Skip to content

Personal Targeted Spells: honor raid vs party settings#167

Open
Krathe82 wants to merge 2 commits into
DanderBot:mainfrom
Krathe82:pr/personal-targeted-mode
Open

Personal Targeted Spells: honor raid vs party settings#167
Krathe82 wants to merge 2 commits into
DanderBot:mainfrom
Krathe82:pr/personal-targeted-mode

Conversation

@Krathe82

Copy link
Copy Markdown
Contributor

Bug: with Personal Targeted Spells disabled on the raid tab (and enabled on party), the icon still showed in raid.

Cause: the entire personal-targeted runtime resolved its settings with DF:GetDB() (always the party DB) — the enable gate (ProcessCastInternal, HandleTargetChange, HandleCastStop, InitTargetedSpells) and every Personal* layout/show/border function. So in a raid it read the party enable toggle (and party size / position / border), ignoring the raid tab entirely. The feature stores settings per-mode (the options page is mode-split, and NeedsCastEvents already checks both db.party and db.raid), so the runtime was simply reading the wrong one.

Fix: added a small resolver

local function GetPersonalDB()
    return IsInRaid() and DF:GetRaidDB() or DF:GetDB()
end

and routed the personal-targeted path through it. The group-frame and Targeted List paths stay party-resolved by design (group targeted is party-only; the list is party-only).

Net effect: in raid it honors the raid tab (enable + size/position/border); in party, party.

Note: touches TargetedSpells.lua, which #164 also edits — they don't appear to overlap on the same lines, but worth merging this after #164 to be safe. Not luac-verified (none available); validated in-game.

Krathe82 added 2 commits June 16, 2026 21:31
…arty)

The whole personal-targeted runtime resolved its db with DF:GetDB() (party),
so in a raid it ignored the raid enable toggle / size / position / border and
used the party settings instead — showing the icon in raid when it was disabled
on the raid tab. Added GetPersonalDB() (IsInRaid() and GetRaidDB() or GetDB())
and routed the personal path through it: the enable gate (ProcessCastInternal,
HandleTargetChange, HandleCastStop, InitTargetedSpells) and every Personal*
layout/show/border function. The group-frame and Targeted List paths stay
party-resolved by design.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant